﻿
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<style type="text/css">
    .table_search td {
        padding-right: 10px;
    }
</style>
<form class="layui-form">
    <table class="table_search">
        <tr>
            <td>日期:</td>
            <td>
                <input type="text" class="layui-input" id="txtSearchDate" maxlength="10"
                       style="width: 100px;" readonly="readonly" placeholder="yyyy-MM-dd" />
            </td>
            <td>买家:</td>
            <td>
                <input type="text" class="layui-input" id="txtSearchBuyer" maxlength="10"
                       style="width: 80px;" />
            </td>
            <td>卖家:</td>
            <td>
                <input type="text" class="layui-input" id="txtSearchSeller" maxlength="10"
                       style="width: 80px;" />
            </td>
            <td>订单号:</td>
            <td>
                <input type="text" class="layui-input" id="txtSearchOrderNo" maxlength="20"
                       style="width: 180px;" />
            </td>
            <td>订单状态:</td>
            <td>
                <div style="width: 100px;">
                    <select id="selSearchOrderStatus">
                        <option value="" selected="selected">请选择</option>
                    </select>
                </div>
            </td>
            <td>
                <button type="button" id="btnSearch" class="layui-btn layui-btn-normal">
                    <i class="layui-icon layui-icon-search"></i>查 询
                </button>
            </td>
        </tr>
    </table>
</form>

<style type="text/css">
    #OrderTableContainer .layui-table-cell {
        height: 42px;
    }
</style>
<div style="margin-top: 10px;" id="OrderTableContainer">
    <table class="layui-hide" id="OrderTable" lay-filter="filter-table-order"></table>
</div>
<script type="text/html" id="ToolBar-OrderTable">
    <a class="layui-btn layui-btn-sm layui-bg-blue" lay-event="viewPaymentInfo" style="margin-left:2px;">付款信息</a>
    {{# var date = moment().format("YYYY-MM-DD") }}
    {{# var date2 = moment().add(1, "days").format("YYYY-MM-DD") }}
    {{# var hour = moment().get("hours") }}
    {{# var date3 = d.Time.substr(0,10) }}
    {{# if(date == date3 || (date2 == date3 && hour < 15)){ }}
    <a class="layui-btn layui-btn-sm layui-bg-orange" lay-event="updateOrderInfo" style="margin-left:2px;">修改订单</a>
    {{# } }}
</script>

<script type="text/html" id="ViewPaymentInfoDlg">
    <div class="layui-carousel">
        <div carousel-item>
        </div>
    </div>
</script>

<style type="text/css">
    #UpdateOrderInfo2 td {
        padding: 5px;
    }

    #UpdateOrderInfo2 .lb-title {
        height: 40px;
        line-height: 40px;
    }
</style>
<script type="text/html" id="UpdateOrderInfo">
    <form class="layui-form" style="padding: 10px; width: 270px; height: 200px;">
        <table align="center" width="100%">
            <tr>
                <td align="right">买家:</td>
                <td valign="middle">
                    <div style="float: left;">
                        <label id="lb-UpdateOrderInfo-BuyerName" class="lb-title" style="color: green;"></label>
                    </div>
                    <div style="float: left; margin-left: 10px; padding-top: 5px;">
                        <button type="button" id="btn-UpdateOrderInfo-SearchBuyer" class="layui-btn layui-btn-sm">
                            <i class="layui-icon layui-icon-return"></i>更改买家
                        </button>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right">卖家:</td>
                <td>
                    <div style="float: left;">
                        <label id="lb-UpdateOrderInfo-SellerName" class="lb-title" style="color: red;"></label>
                    </div>
                    <div style="float: left; margin-left: 10px; padding-top: 5px;">
                        <button type="button" id="btn-UpdateOrderInfo-SearchSeller" class="layui-btn layui-btn-sm">
                            <i class="layui-icon layui-icon-return"></i>更改卖家
                        </button>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right">订单金额:</td>
                <td>
                    <input type="number" class="layui-input" maxlength="12"
                           id="txt-UpdateOrderInfo-Amount" step="0.01"
                           lay-affix="number"
                           min="1000" max="15000" lay-verify="required"
                           lay-reqtext="请输入订单金额" lay-vertype="tips"
                           value="" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;&nbsp;</td>
                <td>
                    <button type="button" id="btn-UpdateOrderInfo-OK" class="layui-btn layui-btn-normal">
                        <i class="layui-icon layui-icon-ok"></i>确 定
                    </button>
                </td>
            </tr>
        </table>
    </form>
</script>

<style type="text/css">
    #SelectUserDlg2 .table1 td {
        padding: 5px;
    }

    #SelectUserDlg2 .user-list {
        width: 100%;
        height: 230px;
        border: 1px solid #eeeeee;
        overflow: hidden;
    }

        #SelectUserDlg2 .user-list ul {
            width: auto;
            height: 100%;
            padding: 10px;
            overflow: scroll;
            overflow-x: hidden;
        }

            #SelectUserDlg2 .user-list ul li {
                display: block;
                list-style-type: none;
                margin-right: 10px;
                float: left;
                font-size: 16px;
                width: 80px;
                border: 1px solid #eeeeee;
                padding: 5px;
                text-align: center;
                margin-bottom: 10px;
            }

    #SelectUserDlg2 .list-item-highlight {
        background-color: #16baaa;
        color: white;
    }
</style>
<script type="text/html" id="SelectUserDlg">
    <form class="layui-form" style="width: 550px; height: 350px;
        padding: 10px; padding-bottom: 0px; overflow: hidden;">
        <table width="100%" height="100%">
            <tr>
                <td height="48">
                    <div style="padding-bottom: 5px;">
                        <table align="center" class="table1">
                            <tr>
                                <td>用户:</td>
                                <td>
                                    <input type="text" class="layui-input" id="txt-SelectUserDlg-Name" maxlength="20"
                                           style="width: 100px;" />
                                </td>
                                <td>
                                    <label style="color: red; font-size: 18px;" id="lb-SelectUserDlg-Result">未选择！</label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="user-list">
                        <ul>
                        </ul>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" height="58" valign="middle">
                    <button type="button" id="btn-SelectUserDlg-OK" class="layui-btn layui-btn-normal">
                        <i class="layui-icon layui-icon-ok"></i>确 定
                    </button>
                </td>
            </tr>
        </table>
    </form>
</script>

<script type="text/javascript" src="~/Static/Js/order.js?rand=0123"></script>
